Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

Previous Next

Agent

The short name field ("ShortName") should only have one value. The alternate name field ("FullName") should be the one having multiple names...

This is how I would solve it:

Create a NotesView object for the view "($People)". Loop through the view, getting one NotesDocument at a time (use GetFirstDocument/GetNextDocument, NOT GetNthDocument!).

For each document use the GetItemValues method to get the content out of the "FullName" field. You will get all the names back as an array.

You can now loop through the array and check for the presence of "@acme.com" (use Instr for this), and if you find it you replace the value with blank.
Finally you use FullTrim() to remove any blank/empty values and write the array back to the field, using the ReplaceItemValue method.
Don't forget to save the document before you process the next document.


Feedback response number WEBB9F8L9Z created by ~Dan Kikiterobu on 01/10/2014

Help with agent (~Mario Chuveluv... 10.Jan.14)
. . Agent (~Dan Kikiterobu... 10.Jan.14)
. . . . Help with agent (~Mario Chuveluv... 10.Jan.14)
. . . . . . I think (~Sean Eljumigon... 10.Jan.14)
. . . . . . Perhaps my system is different... (~Dan Kikiterobu... 11.Jan.14)
. . If the true shortname is always fir... (~Ned Nimfanakon... 12.Jan.14)




Printer-friendly

Search this forum

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS